package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hlt
 * @since 2019-12-25
 */

public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
	private String cid;
    /**
     * 商品id
     */
	private String commid;
    /**
     * 评论者id
     */
	private String cuserid;
    /**
     * 评论者昵称
     */
	private String cusername;
    /**
     * 评论者用户头像
     */
    private String cuimage;
    /**
     * 商品发布者id
     */
	private String spuserid;
    /**
     * 评论内容
     */
	private String content;
    /**
     * 评论时间
     */
	private Date commtime;
    /**
     * 0异常 1正常 2删除
     */
	private Integer commstatus;
    /**
     * 评论对应的回复集合
     */
    private List<Reply> replyLsit;
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getCommid() {
		return commid;
	}
	public void setCommid(String commid) {
		this.commid = commid;
	}
	public String getCuserid() {
		return cuserid;
	}
	public void setCuserid(String cuserid) {
		this.cuserid = cuserid;
	}
	public String getCusername() {
		return cusername;
	}
	public void setCusername(String cusername) {
		this.cusername = cusername;
	}
	public String getCuimage() {
		return cuimage;
	}
	public void setCuimage(String cuimage) {
		this.cuimage = cuimage;
	}
	public String getSpuserid() {
		return spuserid;
	}
	public void setSpuserid(String spuserid) {
		this.spuserid = spuserid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCommtime() {
		return commtime;
	}
	public void setCommtime(Date commtime) {
		this.commtime = commtime;
	}
	public Integer getCommstatus() {
		return commstatus;
	}
	public void setCommstatus(Integer commstatus) {
		this.commstatus = commstatus;
	}
	public List<Reply> getReplyLsit() {
		return replyLsit;
	}
	public void setReplyLsit(List<Reply> replyLsit) {
		this.replyLsit = replyLsit;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Comment [cid=" + cid + ", commid=" + commid + ", cuserid=" + cuserid + ", cusername=" + cusername
				+ ", cuimage=" + cuimage + ", spuserid=" + spuserid + ", content=" + content + ", commtime=" + commtime
				+ ", commstatus=" + commstatus + ", replyLsit=" + replyLsit + "]";
	}
    
    
}
